package org.mspring.mlog.api.spider.dao.impl;

import java.util.List;

import org.mspring.mlog.api.spider.dao.SpiderRuleDao;
import org.mspring.mlog.api.spider.entity.SpiderRule;
import org.mspring.platform.dao.hibernate.GenericDao;
import org.springframework.stereotype.Repository;

/**
 *
 * @author Gao Youbo
 * @since 2013-3-8
 */
@Repository
public class SpiderRuleDaoImpl extends GenericDao<SpiderRule, Long> implements SpiderRuleDao {

    @Override
    public List<SpiderRule> listAllEnabledRules() {
        return list("select rule from SpiderRule rule where rule.enabled = true");
    }

}
